home *** CD-ROM | disk | FTP | other *** search
/ 3D Games - Real-time Rend…ng & Software Technology / 3D Games - Real-time Rendering & Software Technology.iso / flysdk / util / flyFonts / Fonts.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  2000-02-23  |  1.7 KB  |  68 lines

  1. // Fonts.cpp : Defines the class behaviors for the application.
  2. //
  3.  
  4. #include <afxwin.h>         // MFC core and standard components
  5. #include <afxext.h>         // MFC extensions
  6. #include <afxdtctl.h>        // MFC support for Internet Explorer 4 Common Controls
  7. #ifndef _AFX_NO_AFXCMN_SUPPORT
  8. #include <afxcmn.h>            // MFC support for Windows Common Controls
  9. #endif // _AFX_NO_AFXCMN_SUPPORT
  10.  
  11. #include "Fonts.h"
  12. #include "FontsDlg.h"
  13.  
  14. #ifdef _DEBUG
  15. #define new DEBUG_NEW
  16. #undef THIS_FILE
  17. static char THIS_FILE[] = __FILE__;
  18. #endif
  19.  
  20. /////////////////////////////////////////////////////////////////////////////
  21. // CFontsApp
  22.  
  23. BEGIN_MESSAGE_MAP(CFontsApp, CWinApp)
  24.     //{{AFX_MSG_MAP(CFontsApp)
  25.     //}}AFX_MSG
  26.     ON_COMMAND(ID_HELP, CWinApp::OnHelp)
  27. END_MESSAGE_MAP()
  28.  
  29. /////////////////////////////////////////////////////////////////////////////
  30. // CFontsApp construction
  31.  
  32. CFontsApp::CFontsApp()
  33. {
  34. }
  35.  
  36. /////////////////////////////////////////////////////////////////////////////
  37. // The one and only CFontsApp object
  38.  
  39. CFontsApp theApp;
  40.  
  41. /////////////////////////////////////////////////////////////////////////////
  42. // CFontsApp initialization
  43.  
  44. BOOL CFontsApp::InitInstance()
  45. {
  46.     // Standard initialization
  47.  
  48. #ifdef _AFXDLL
  49.     Enable3dControls();            // Call this when using MFC in a shared DLL
  50. #else
  51.     Enable3dControlsStatic();    // Call this when linking to MFC statically
  52. #endif
  53.  
  54.     CFontsDlg dlg;
  55.     m_pMainWnd = &dlg;
  56.     int nResponse = dlg.DoModal();
  57.     if (nResponse == IDOK)
  58.     {
  59.     }
  60.     else if (nResponse == IDCANCEL)
  61.     {
  62.     }
  63.  
  64.     // Since the dialog has been closed, return FALSE so that we exit the
  65.     //  application, rather than start the application's message pump.
  66.     return FALSE;
  67. }
  68.